﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="chapter.aspx.cs" Inherits="pages_chapters_chapter" %>

<%@ Register tagname="Comments" tagprefix="uc" src="~/usercontrols/UCComments.ascx" %>
<%@ Register tagname="Photos" tagprefix="uc" src="~/usercontrols/UCPhotos.ascx" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Post</title>
    <link type="text/css" href="../../css/tables.css" rel=Stylesheet />
    <link type="text/css" href="../../css/paging.css" rel=Stylesheet />
    <style>
        table th,td { vertical-align: top;
        }

        .box { background-color:#eee; margin:10px; padding:5px 10px; border:1px solid #aaa;background-color:#f2f2f2;  -moz-border-radius: 15px; -webkit-border-radius: 15px; -khtml-border-radius: 15px; border-radius: 15px;}
        div.box { width:400px; margin:20px;}

        .bigtext {  font-family:Arial; margin:0px; max-height:400px; width:1000px; overflow:auto;  }
        .medtext {  font-family:Arial; margin:0px; max-height:50px; width:800px; overflow:auto;  }

        textarea {
            font-family: Arial;
            font-size: 12px;

        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:HyperLink id="lnkBack" runat="server" Text="&laquo; BACK" />
        &nbsp;
        <asp:HyperLink id="lnkmages" runat="server" Text="IMAGES &raquo;" />
        <table class="datagrid">
           <tr>
               <th>ID</th>
               <td><asp:HyperLink ID="lblId" runat="server" />  </td>
           </tr>
           <tr>
               <th>ObjectId</th>
               <td><asp:HyperLink ID="lblObjectId" runat="server" Target="_blank" />  </td>
           </tr>
           <tr>
               <th>Created</th>
               <td><asp:Label ID="lblCreated" runat="server" />  </td>
           </tr>
           <tr>
               <th>Updated</th>
               <td><asp:Label ID="lblUpdated" runat="server" />  </td>
           </tr>
           <tr>
               <th>Rating</th>
               <td><asp:RadioButtonList ID="rblRating" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="rblRating_SelectedIndexChanged" Font-Bold="true" />  </td>
           </tr>
           <tr>
               <th>
                   Tags<br />
               </th>
               <td>
                   <asp:Button ID="btnSaveTags" runat="server" Text="Save Tags" OnClick="btnSaveTags_Click" /> &nbsp;&nbsp;&nbsp;&nbsp;
                   <asp:TextBox ID="txtNewTag" runat="server" Width="150" /><asp:Button ID="btnAddTag" runat="server" Text="New Tag" OnClick="btnAddTag_Click" /><br />
                   <br />                   
                   <asp:CheckBoxList ID="cblTags" runat="server" DataTextField="TagName" DataValueField="TagId" />  

               </td>
           </tr>
           <tr class="alt_row">
               <th>Message</th>
               <td ><div class="bigtext"><asp:Label ID="lblMessage" runat="server" CssClass="bigtext" /></div></td>
           </tr>
           <tr>
               <th>Comments</th>
               <td style="padding:0px">
                   <uc:Comments ID="ctrlComments" runat="server" />
               </td>
           </tr>
           <tr>
               <th>Picture<br />
                   Full-Pic
               </th>
               <td><asp:Image ID="imgPicture" runat="server" /> <asp:Image ID="imgFullPic" runat="server" Height="100" />  </td>
           </tr>
           <tr>
               <th>Attachments</th>
               <td>
                   <asp:HyperLink ID="lnk" runat="server" />
                   <uc:Photos ID="ctrlPhotos" runat="server" />
               </td>
           </tr>
            
           <tr>
               <th>From</th>
               <td><asp:Label ID="lblFrom" runat="server" />  </td>
           </tr>
           <tr>
               <th>Status Type</th>
               <td><asp:Label ID="lblStatusType" runat="server" />  </td>
           </tr>
           <tr>
               <th>Story</th>
               <td><asp:Label ID="lblStory" runat="server" />  </td>
           </tr>
           <tr>
               <th>Privacy</th>
               <td><asp:Label ID="lblPrivacy" runat="server" />  </td>
           </tr>
        </table>
    </div>
    </form>
</body>
</html>
